<div class="sectionHeader">
    <hr>
    <label class="mainColor">选择需要同步的数据库:</label>
    <button type="button" onclick="takeout.updatedb('${ctxPath!}/dbtable/updatedbs?table=${table!}&content_ids=${content_ids!}&copyType=${copyType!}',1, '')" class="btn btn-info mainButtonRight">开始同步</button>
</div>
<form id="queryForm1" action="${ctxPath!}/dbtable/listDialog?table=${table!}&content_ids=${content_ids!}&copyType=${copyType!}" method="POST">
    <div class="sectionForm">
        <div class="form-inline">
            <div class="sectionFormFirstRow">
                <div class="form-group sectionFormLabel">
                    <div class="form-group sectionFormLabel">

                        <label class="mainColor">大类:</label>
                        <#dictTag val="${categoryid!}" type="select" style="margin-left:5px;" group="dbtable"  pname="categoryid" defaultNumber="0"></#dictTag>
                    </div>
                    <button type="button" onclick="takeout.ajaxFormPopupBox('queryForm1')" class="btn btn-info" style="width:90px;">查询</button>
                </div>
            </div>
        </div>
    </div>

    <div class="sectionFormContent">
        <div class="sectionFormHeadline">
        </div>
        <hr>
        <table class="table table-bordered table-hover">
            <thead>
            <tr>
                <th style="width:50px;" ><a href="javascript:takeout.selectIframeAll();">全选</a></th>
                <th>小程序名</th>
                <th>数据库名</th>
                <th>类型</th>
                <th>数据库url</th>
                <th>数据库用户名</th>
            </tr>
            </thead>
            <% for(im in data.list){ %>
            <tr class="a">
                <td style="width:50px;text-align:center"><input class="a" type="checkbox" value="${im.id}" /></td>
                <td>${im.title!}</td>
                <td>${im.tablename!}</td>
                <td>${oneToManyDictDisplayFunc(im.category!"0",'sys_dict','name','dbtable')}</td>
                <td>${im.jdbcurl!}</td>
                <td>${im.jdbcusername!}</td>
            </tr>
            <%}%>

        </table>
        <div id="splitPageDiv" class="splitPage">
            <% include("../common/comm_page.html", {"divId" : "manage_content", "formId" : "queryForm", "splitPageDiv" : "splitPageDiv"}){} %>
        </div>
    </div>
</form>